// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import Qt.labs.particles 1.0

CharacterBase{
    width: 5
    height: 13
    color: "#00aaaaaa"

    Particles {
        anchors.horizontalCenter: parent.horizontalCenter
        y: _image.height
        width: 1
        height: parent.height * 2
        source: "images/star.png"
        lifeSpan: 1000
        count: 20
        angle: 90
        angleDeviation: 45
        velocity: 30
        velocityDeviation: 10
    }
    Image{
        id: _image
        anchors.centerIn: parent
        fillMode: Image.PreserveAspectCrop
        source: "./images/homu_bullet.png"
    }

    function init(obj){
        _anim.start();
    }

    function move(){
    }

    NumberAnimation on y{
        id: _anim
        to: -1 * height
        duration: 1000
        running: false
    }
    function resumeAnimation(){
        _anim.restart();
    }
    function pauseAnimation(){
        _anim.pause();
    }
}
